package team.niit.errorenum;

/**
 * @Author: HAPPY
 * @Project_name: JSF
 * @Package_name: team.niit.myenum
 * @Date: 2021/11/28 20:06
 * @Description:
 */
public enum ErrorCodeEnum {
    OUT_OF_BOUNDS(1),
    HAS_BEEN_SELECTED(2),
    EXIST_OTHER_COURSE(3),
    INNER_ERROR(4),
    INSUFFICIENT(5),
    SUCCESS(6);

    private Integer code;

    ErrorCodeEnum(Integer code) {
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public ErrorCodeEnum setCode(Integer code) {
        this.code = code;
        return this;
    }
}
